
import javax.swing.JOptionPane;

/*
 * FrameReportes.java
 *
 * Created on 24 de julio de 2009, 08:30 PM
 */



/**
 *
 * @author  gdlemarq
 */
public class FrameReportes extends javax.swing.JFrame {
    
    FrameRepListadoClientes FRLC = new FrameRepListadoClientes();
    FrameRepListadoProductos FRLP = new FrameRepListadoProductos();
    FrameRepListadoUsuarios FRLU = new FrameRepListadoUsuarios();
    FrameRepListadoProveedores FRLPR = new FrameRepListadoProveedores();
    
    /** Creates new form FrameReportes */
    public FrameReportes() {
        initComponents();
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        btnListadoClientes = new javax.swing.JToggleButton();
        btnMejoresCompradores = new javax.swing.JToggleButton();
        btnConSaldoPendiente = new javax.swing.JToggleButton();
        btnConSaldoFavor = new javax.swing.JToggleButton();
        btnListadoProductos = new javax.swing.JToggleButton();
        btnProductosMasVendidos = new javax.swing.JToggleButton();
        btnProductosMenosVendidos = new javax.swing.JToggleButton();
        btnSalir = new javax.swing.JToggleButton();
        btnListadoUsuarios = new javax.swing.JToggleButton();
        btnListadoProveedores = new javax.swing.JToggleButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 14));
        jLabel1.setText("                REPORTES");
        jLabel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));

        btnListadoClientes.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\gif\\admin_24.gif")); // NOI18N
        btnListadoClientes.setText("           Listado Clientes        ");
        btnListadoClientes.setToolTipText("Muestra el listado de todos los clientes con sus datos generales.");
        btnListadoClientes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnListadoClientesMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnListadoClientesMouseExited(evt);
            }
        });
        btnListadoClientes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListadoClientesActionPerformed(evt);
            }
        });

        btnMejoresCompradores.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\admin_24.png")); // NOI18N
        btnMejoresCompradores.setText("        Mejores Compradores   ");
        btnMejoresCompradores.setToolTipText("Lista los clientes que más han comprado \n(por encima de la media de compras por cliente)");
        btnMejoresCompradores.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnMejoresCompradoresMouseEntered(evt);
            }
        });
        btnMejoresCompradores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnMejoresCompradoresActionPerformed(evt);
            }
        });

        btnConSaldoPendiente.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\admin_24.png")); // NOI18N
        btnConSaldoPendiente.setText("Clientes con saldo pendiente");
        btnConSaldoPendiente.setToolTipText("Lista los clientes con un saldo pendiente\n(Estén o no al corriente de sus pagos)");
        btnConSaldoPendiente.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnConSaldoPendienteMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnConSaldoPendienteMouseExited(evt);
            }
        });
        btnConSaldoPendiente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConSaldoPendienteActionPerformed(evt);
            }
        });

        btnConSaldoFavor.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\admin_24.png")); // NOI18N
        btnConSaldoFavor.setText("    Clientes con saldo a favor");
        btnConSaldoFavor.setToolTipText("Lista los clientes que tienen saldo a favor.");
        btnConSaldoFavor.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                btnConSaldoFavorMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                btnConSaldoFavorMouseExited(evt);
            }
        });
        btnConSaldoFavor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConSaldoFavorActionPerformed(evt);
            }
        });

        btnListadoProductos.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\24\\008-doc_edit.png")); // NOI18N
        btnListadoProductos.setText("          Listado Productos     ");
        btnListadoProductos.setToolTipText("Listado de todos los productos y sus datos generales.");
        btnListadoProductos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListadoProductosActionPerformed(evt);
            }
        });

        btnProductosMasVendidos.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\web_24.png")); // NOI18N
        btnProductosMasVendidos.setText("    Productos más vendidos   ");
        btnProductosMasVendidos.setToolTipText("Listado de los productos más vendidos.");
        btnProductosMasVendidos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProductosMasVendidosActionPerformed(evt);
            }
        });

        btnProductosMenosVendidos.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\png\\web_24.png")); // NOI18N
        btnProductosMenosVendidos.setText(" Productos menos vendidos  ");
        btnProductosMenosVendidos.setToolTipText("Muestra los productos que menos se venden");
        btnProductosMenosVendidos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnProductosMenosVendidosActionPerformed(evt);
            }
        });

        btnSalir.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\gif\\24\\industry_24.gif")); // NOI18N
        btnSalir.setText("Salir");
        btnSalir.setToolTipText("Salir de reportes...");
        btnSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSalirActionPerformed(evt);
            }
        });

        btnListadoUsuarios.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\gif\\admin_24.gif")); // NOI18N
        btnListadoUsuarios.setText("           Listado Usuarios     ");
        btnListadoUsuarios.setToolTipText("Listado de todos los productos y sus datos generales.");
        btnListadoUsuarios.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListadoUsuariosActionPerformed(evt);
            }
        });

        btnListadoProveedores.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\gdlemarq\\My Documents\\My Pictures\\Sistema\\gif\\admin_24.gif")); // NOI18N
        btnListadoProveedores.setText("      Listado Proveedores     ");
        btnListadoProveedores.setToolTipText("Listado de todos los productos y sus datos generales.");
        btnListadoProveedores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListadoProveedoresActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
                    .addComponent(btnSalir, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(btnMejoresCompradores, javax.swing.GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
                        .addComponent(btnConSaldoPendiente, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnConSaldoFavor, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnProductosMasVendidos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(btnProductosMenosVendidos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
            .addComponent(btnListadoClientes, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
            .addComponent(btnListadoProductos, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
            .addComponent(btnListadoUsuarios, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
            .addComponent(btnListadoProveedores, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btnListadoClientes)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnListadoProductos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnListadoUsuarios)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnListadoProveedores)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 80, Short.MAX_VALUE)
                .addComponent(btnConSaldoPendiente)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnConSaldoFavor)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnMejoresCompradores)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnProductosMasVendidos)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btnProductosMenosVendidos)
                .addGap(47, 47, 47)
                .addComponent(btnSalir, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnListadoClientesMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnListadoClientesMouseEntered
        // TODO add your handling code here:
      
    }//GEN-LAST:event_btnListadoClientesMouseEntered

    private void btnListadoClientesMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnListadoClientesMouseExited
        // TODO add your handling code here:
       
    }//GEN-LAST:event_btnListadoClientesMouseExited

    private void btnMejoresCompradoresMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnMejoresCompradoresMouseEntered
        // TODO add your handling code here:
        
    }//GEN-LAST:event_btnMejoresCompradoresMouseEntered

    private void btnConSaldoPendienteMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnConSaldoPendienteMouseEntered
        // TODO add your handling code here:
        
    }//GEN-LAST:event_btnConSaldoPendienteMouseEntered

    private void btnConSaldoPendienteMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnConSaldoPendienteMouseExited
        // TODO add your handling code here:
       
    }//GEN-LAST:event_btnConSaldoPendienteMouseExited

    private void btnConSaldoFavorMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnConSaldoFavorMouseEntered
        // TODO add your handling code here:
        
    }//GEN-LAST:event_btnConSaldoFavorMouseEntered

    private void btnConSaldoFavorMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnConSaldoFavorMouseExited
        // TODO add your handling code here:
    }//GEN-LAST:event_btnConSaldoFavorMouseExited

    private void btnListadoClientesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListadoClientesActionPerformed
        // TODO add your handling code here:
        //CR.Listadoclientes();
        FRLC.setVisible(true);
        
    }//GEN-LAST:event_btnListadoClientesActionPerformed

    private void btnMejoresCompradoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnMejoresCompradoresActionPerformed
        // TODO add your handling code here:
        JOptionPane.showMessageDialog(null,"Proximamente");
    }//GEN-LAST:event_btnMejoresCompradoresActionPerformed

    private void btnConSaldoPendienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConSaldoPendienteActionPerformed
        // TODO add your handling code here:
        JOptionPane.showMessageDialog(null,"Proximamente");
    }//GEN-LAST:event_btnConSaldoPendienteActionPerformed

    private void btnConSaldoFavorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConSaldoFavorActionPerformed
        // TODO add your handling code here:
        JOptionPane.showMessageDialog(null,"Proximamente");
    }//GEN-LAST:event_btnConSaldoFavorActionPerformed

    private void btnListadoProductosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListadoProductosActionPerformed
        // TODO add your handling code here:
        FRLP.setVisible(true);
    }//GEN-LAST:event_btnListadoProductosActionPerformed

    private void btnProductosMasVendidosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProductosMasVendidosActionPerformed
        // TODO add your handling code here:
        JOptionPane.showMessageDialog(null,"Proximamente");
    }//GEN-LAST:event_btnProductosMasVendidosActionPerformed

    private void btnProductosMenosVendidosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnProductosMenosVendidosActionPerformed
        // TODO add your handling code here:
        JOptionPane.showMessageDialog(null,"Proximamente");
    }//GEN-LAST:event_btnProductosMenosVendidosActionPerformed

    private void btnSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalirActionPerformed
        // TODO add your handling code here:
        this.setVisible(false);
    }//GEN-LAST:event_btnSalirActionPerformed

    private void btnListadoUsuariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListadoUsuariosActionPerformed
        // TODO add your handling code here:
        FRLU.setVisible(true);
}//GEN-LAST:event_btnListadoUsuariosActionPerformed

    private void btnListadoProveedoresActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListadoProveedoresActionPerformed
        // TODO add your handling code here:
        FRLPR.setVisible(true);
}//GEN-LAST:event_btnListadoProveedoresActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrameReportes().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToggleButton btnConSaldoFavor;
    private javax.swing.JToggleButton btnConSaldoPendiente;
    private javax.swing.JToggleButton btnListadoClientes;
    private javax.swing.JToggleButton btnListadoProductos;
    private javax.swing.JToggleButton btnListadoProveedores;
    private javax.swing.JToggleButton btnListadoUsuarios;
    private javax.swing.JToggleButton btnMejoresCompradores;
    private javax.swing.JToggleButton btnProductosMasVendidos;
    private javax.swing.JToggleButton btnProductosMenosVendidos;
    private javax.swing.JToggleButton btnSalir;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
    
}
